<template>
	<div>
		<HomeHeader></HomeHeader>
		<HomeLeft :cur="3"></HomeLeft>
		<div id="main">
			<div id="web_con">
				<div class="web_wp">
					<div class="web_location">
						<div class="here_area">
							<strong>当前位置：</strong>财富管理&nbsp;&nbsp;»&nbsp;&nbsp;查看历史
						</div>
						<div class="here_btn">
<a href="javascript:history.back()" class="web_btn btn_add"><em
									class="iconfont icon-shdcfanhui"></em>返回</a>
						</div>
					</div>
					<div class="filter clearfix">
						<div class="aa">
							
						</div>
						<div class="bb">							
							
							<a href="javascript:;" class="web_btn btn_refresh" @click="Refresh()"><em
									class="iconfont icon-shdcshuaxin"></em>刷新</a>
						</div>
					</div>

					<div class="web_table">
						<table>
							<tr>
								<th class="tac">交易编号</th>
								<th class="tac">用户名称</th>		
								<th class="tac">存入金额</th>
								<th class="tac">年化收益率</th>
								<th class="tac">预计收益</th>
								<th class="tac">赠送积分</th>
								<th class="tac">生效日期</th>
								<th class="tac">到期日期</th>
							</tr>
							<tr
								<td class="tac">123456123456</td>
								<td class="tac">张三</td>
								<td class="tac">2000</td>
								<td class="tac">3%</td>
								<td class="tac">60</td>
								<td class="tac">2000</td>
								<td class="tac">2023-03-02</td>
								<td class="tac">2024-03-02</td>							
							</tr>
							<tr>
								<td class="tac">123456123456</td>
								<td class="tac">张三</td>
								<td class="tac">2000</td>
								<td class="tac">3%</td>
								<td class="tac">60</td>
								<td class="tac">2000</td>
								<td class="tac">2022-03-02</td>
								<td class="tac">2023-03-02</td>							
							</tr>
						</table>
					</div>
					<div class="web_page">
						<el-pagination background @current-change="ChengPage" :current-page="page" :page-size="10"
							layout="total,prev, pager,next" :total="listinfo.total">
						</el-pagination>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	import HomeHeader from '../components/Header.vue'
	import HomeLeft from '../components/Left.vue'
	export default {
		components: {
			HomeHeader,
			HomeLeft,

		},
		data() {
			return {
				page:1,
				listinfo: [],
				keywords:'',
				type:'',
			}
		},
		onShow() {
			// this.GetList();
		},
		methods: {
			
			Refresh:function(){
				this.keywords = '';
				this.Seach();
			},
			
			Seach: function() {
				this.page = 1;
				this.GetList();
			},
			
			
			GetList: function() {
				let that = this;
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				let _data = {
					keywords: that.keywords,
					page: that.page
				};
				that.common.http('GET', 'members/index', _data, function(res) {
					uni.hideLoading();
					console.log(res.data.data)
					that.listinfo = res.data
				});
			},
			LookTest: function(id) {
				uni.navigateTo({
					url: '/pages/member/info?id=' + id
				})
			},
		}
	}
</script>

<style>


</style>